#include <iostream>
using namespace std;
int main()
{
int i,bai,ge,ans=0;
for(i=100;i<=130;i++)
{
bai=i/100;
ge=i%10;
if(bai==ge)ans++;	
}
cout <<ans<<endl;
return 0;	
}
//输出3
